import './assets/main.css'

import { createApp } from 'vue'
import App from './App.vue'
// import store from './store'
// 引入 router
import router from './router'
import axios from './utils/axios'
import './mock'

// 引入 pxTorem
import 'amfe-flexible'
// 1. 引入你需要的组件
import { Button,Tabbar, TabbarItem ,Toast,Form,Field,CellGroup,Swipe,SwipeItem,ActionBar,ActionBarIcon,ActionBarButton,Empty,Cell} from 'vant'
// 2. 引入组件样式
import 'vant/lib/index.css'

const app = createApp(App)

//axios全局配置
app.config.globalProperties.$axios = axios;


// 挂载 router
app.use(router)
// app.use(store)

// 3. 注册你需要的组件
app.use(Button)
app.use(Tabbar)
app.use(TabbarItem)
app.use(Toast)
app.use(Form)
app.use(Field)
app.use(CellGroup)
app.use(Swipe)
app.use(SwipeItem)
app.use(ActionBar)
app.use(ActionBarIcon)
app.use(ActionBarButton)
app.use(Empty)
app.use(Cell)
app.mount('#app')